﻿/***************
 * Copyright 2009 (C) 
 * Timur Fanshteyn
 * Blog: http://blog.tfanshteyn.com
 * ************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using System.Collections.ObjectModel;

namespace Coherence.Linq
{
    public class WhereExpression : SelectExpression
    {
        internal WhereExpression(Type type, Expression from, Expression where)
            : base(type, from, where)
        {
        }
    }
    public class SelectExpression : Expression
    {
        Expression from;
        Expression where;
        internal SelectExpression(Type type, Expression from, Expression where)
            : base((ExpressionType)CoherenceExpressionType.Select, type)
        {
            this.from = from;
            this.where = where;
        }

        internal Expression From
        {
            get { return this.from; }
        }
        internal Expression Where
        {
            get { return this.where; }
        }
    }
}
